home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 22 / AMUG_22-4.ISO / Files IV / Prog / T / TinyTools-2.sit / TinyTools / FPScroll.c < prev    next >
MacBinary  |  1997-10-07  |  5.8 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Tue Oct 7 02:47:45 1997, modified Tue Oct 7 02:47:45 1997, creator 'MPS ', type ASCII, 5234 bytes "FPScroll.c" , at 0x14f2 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% dearkID deark: macbinary default
100% lsar MacBinary default
100% librempegprobeID NGC (Nintendo DSP Standard) (ngcdspstd) default (weak)


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 46 50 53 63 72 6f | 6c 6c 2e 63 00 00 00 00 |..FPScro|ll.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 14 72 00 | 00 01 ac b0 5f 8b 91 b0 |......r.|...._...|
|00000060| 5f 8b 91 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |_.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 02 e6 00 00 |........|........|
|00000080| 0d 2f 2a 20 66 69 6c 65 | 20 46 50 53 63 72 6f 6c |./* file| FPScrol|
|00000090| 6c 2e 63 0d 09 52 6f 75 | 74 69 6e 65 73 20 66 6f |l.c..Rou|tines fo|
|000000a0| 72 20 75 73 69 6e 67 20 | 74 68 65 20 73 74 61 6e |r using |the stan|
|000000b0| 64 61 72 64 20 73 63 72 | 6f 6c 6c 20 62 61 72 73 |dard scr|oll bars|
|000000c0| 20 77 69 74 68 20 66 6c | 6f 61 74 69 6e 67 0d 09 | with fl|oating..|
|000000d0| 70 6f 69 6e 74 20 6e 75 | 6d 62 65 72 73 20 70 72 |point nu|mbers pr|
|000000e0| 6f 76 69 64 69 6e 67 20 | 73 63 72 6f 6c 6c 69 6e |oviding |scrollin|
|000000f0| 67 20 61 63 63 72 6f 73 | 73 20 74 68 65 20 72 61 |g accros|s the ra|
|00000100| 6e 67 65 20 6f 66 0d 09 | 66 6c 6f 61 74 2c 20 64 |nge of..|float, d|
|00000110| 6f 75 62 6c 65 2c 20 6f | 72 20 77 68 61 74 65 76 |ouble, o|r whatev|
|00000120| 65 72 2e 2e 2e 0d 09 43 | 6f 70 79 72 69 67 68 74 |er.....C|opyright|
|00000130| 20 28 63 29 20 31 39 39 | 37 20 62 79 20 4a 6f 68 | (c) 199|7 by Joh|
|00000140| 6e 20 4d 6f 6e 74 62 72 | 69 61 6e 64 2e 20 20 41 |n Montbr|iand. A|
|00000150| 6c 6c 20 52 69 67 68 74 | 73 20 52 65 73 65 72 76 |ll Right|s Reserv|
|00000160| 65 64 2e 0d 09 50 65 72 | 6d 69 73 73 69 6f 6e 20 |ed...Per|mission |
|00000170| 67 72 61 6e 74 65 64 20 | 66 6f 72 20 70 75 62 6c |granted |for publ|
|00000180| 69 63 20 75 73 65 2e 0d | 09 44 69 73 74 72 69 62 |ic use..|.Distrib|
|00000190| 75 74 65 20 66 72 65 65 | 6c 79 20 69 6e 20 61 72 |ute free|ly in ar|
|000001a0| 65 61 73 20 77 68 65 72 | 65 20 74 68 65 20 6c 61 |eas wher|e the la|
|000001b0| 77 73 20 6f 66 20 63 6f | 70 79 72 69 67 68 74 20 |ws of co|pyright |
|000001c0| 61 70 70 6c 79 2e 0d 09 | 55 53 45 20 41 54 20 59 |apply...|USE AT Y|
|000001d0| 4f 55 52 20 4f 57 4e 20 | 52 49 53 4b 2e 0d 09 44 |OUR OWN |RISK...D|
|000001e0| 4f 20 4e 4f 54 20 44 49 | 53 54 52 49 42 55 54 45 |O NOT DI|STRIBUTE|
|000001f0| 20 4d 4f 44 49 46 49 45 | 44 20 43 4f 50 49 45 53 | MODIFIE|D COPIES|
|00000200| 2e 0d 09 43 6f 6d 6d 65 | 6e 74 73 2f 71 75 65 73 |...Comme|nts/ques|
|00000210| 74 69 6f 6e 73 2f 70 6f | 73 74 63 61 72 64 73 20 |tions/po|stcards |
|00000220| 74 6f 20 74 68 65 20 61 | 75 74 68 6f 72 20 61 74 |to the a|uthor at|
|00000230| 20 74 68 65 20 61 64 64 | 72 65 73 73 3a 0d 09 09 | the add|ress:...|
|00000240| 4a 6f 68 6e 20 4d 6f 6e | 74 62 72 69 61 6e 64 0d |John Mon|tbriand.|
|00000250| 09 09 50 2e 4f 2e 20 42 | 6f 78 2e 20 31 31 33 33 |..P.O. B|ox. 1133|
|00000260| 0d 09 09 53 61 73 6b 61 | 74 6f 6f 6e 20 53 61 73 |...Saska|toon Sas|
|00000270| 6b 61 74 63 68 65 77 61 | 6e 20 43 61 6e 61 64 61 |katchewa|n Canada|
|00000280| 0d 09 09 53 37 4b 20 33 | 4e 32 0d 09 6f 72 20 62 |...S7K 3|N2..or b|
|00000290| 79 20 65 6d 61 69 6c 20 | 61 74 3a 0d 09 09 74 69 |y email |at:...ti|
|000002a0| 6e 79 6a 6f 68 6e 40 73 | 6b 2e 73 79 6d 70 61 74 |nyjohn@s|k.sympat|
|000002b0| 69 63 6f 2e 63 61 0d 09 | 49 66 20 79 6f 75 20 77 |ico.ca..|If you w|
|000002c0| 6f 75 6c 64 20 6c 69 6b | 65 20 74 6f 20 68 61 76 |ould lik|e to hav|
|000002d0| 65 3a 0d 09 09 74 65 63 | 68 6e 69 63 61 6c 20 73 |e:...tec|hnical s|
|000002e0| 75 70 70 6f 72 74 20 72 | 65 67 61 72 64 69 6e 67 |upport r|egarding|
|000002f0| 20 74 68 69 73 20 66 69 | 6c 65 2c 20 73 65 6e 64 | this fi|le, send|
|00000300| 20 61 20 70 6f 73 74 63 | 61 72 64 2e 0d 09 73 65 | a postc|ard...se|
|00000310| 65 20 61 6c 73 6f 3a 0d | 09 09 68 74 74 70 3a 2f |e also:.|..http:/|
|00000320| 2f 77 77 77 33 2e 73 6b | 2e 73 79 6d 70 61 74 69 |/www3.sk|.sympati|
|00000330| 63 6f 2e 63 61 2f 74 69 | 6e 79 6a 6f 68 6e 0d 2a |co.ca/ti|nyjohn.*|
|00000340| 2f 0d 0d 0d 23 69 6e 63 | 6c 75 64 65 20 22 46 50 |/...#inc|lude "FP|
|00000350| 53 63 72 6f 6c 6c 2e 68 | 22 0d 23 69 6e 63 6c 75 |Scroll.h|".#inclu|
|00000360| 64 65 20 3c 66 70 2e 68 | 3e 0d 23 69 6e 63 6c 75 |de <fp.h|>.#inclu|
|00000370| 64 65 20 3c 4f 53 55 74 | 69 6c 73 2e 68 3e 0d 23 |de <OSUt|ils.h>.#|
|00000380| 69 6e 63 6c 75 64 65 20 | 3c 4d 65 6d 6f 72 79 2e |include |<Memory.|
|00000390| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 4d 69 78 |h>.#incl|ude <Mix|
|000003a0| 65 64 4d 6f 64 65 2e 68 | 3e 0d 0d 74 79 70 65 64 |edMode.h|>..typed|
|000003b0| 65 66 20 73 74 72 75 63 | 74 20 7b 0d 09 66 6c 6f |ef struc|t {..flo|
|000003c0| 61 74 20 6d 69 6e 2c 20 | 6d 61 78 2c 20 76 61 6c |at min, |max, val|
|000003d0| 75 65 2c 20 70 72 65 76 | 74 68 75 6d 62 3b 0d 09 |ue, prev|thumb;..|
|000003e0| 46 50 53 63 72 6f 6c 6c | 41 63 74 69 6f 6e 50 72 |FPScroll|ActionPr|
|000003f0| 6f 63 20 61 63 74 69 6f | 6e 70 72 6f 63 3b 0d 09 |oc actio|nproc;..|
|00000400| 6c 6f 6e 67 20 72 65 66 | 65 72 65 6e 63 65 3b 0d |long ref|erence;.|
|00000410| 7d 20 46 50 53 63 72 6f | 6c 6c 56 61 72 73 3b 0d |} FPScro|llVars;.|
|00000420| 0d 23 70 72 61 67 6d 61 | 20 73 65 67 6d 65 6e 74 |.#pragma| segment|
|00000430| 20 66 70 73 63 72 6f 6c | 6c 0d 0d 43 6f 6e 74 72 | fpscrol|l..Contr|
|00000440| 6f 6c 48 61 6e 64 6c 65 | 20 4e 65 77 46 50 53 63 |olHandle| NewFPSc|
|00000450| 72 6f 6c 6c 42 61 72 28 | 57 69 6e 64 6f 77 50 74 |rollBar(|WindowPt|
|00000460| 72 20 77 70 2c 20 52 65 | 63 74 2a 20 62 6f 78 2c |r wp, Re|ct* box,|
|00000470| 20 46 50 53 63 72 6f 6c | 6c 41 63 74 69 6f 6e 50 | FPScrol|lActionP|
|00000480| 72 6f 63 20 61 63 74 69 | 6f 6e 29 20 7b 0d 09 43 |roc acti|on) {..C|
|00000490| 6f 6e 74 72 6f 6c 48 61 | 6e 64 6c 65 20 63 6f 6e |ontrolHa|ndle con|
|000004a0| 74 72 6f 6c 3b 0d 09 46 | 50 53 63 72 6f 6c 6c 56 |trol;..F|PScrollV|
|000004b0| 61 72 73 20 64 76 3b 0d | 09 48 61 6e 64 6c 65 20 |ars dv;.|.Handle |
|000004c0| 76 61 72 73 68 61 6e 64 | 6c 65 3b 0d 09 09 0d 09 |varshand|le;.....|
|000004d0| 09 2f 2a 20 73 65 74 20 | 75 70 20 64 76 20 73 74 |./* set |up dv st|
|000004e0| 72 75 63 74 75 72 65 20 | 2a 2f 0d 09 64 76 2e 6d |ructure |*/..dv.m|
|000004f0| 69 6e 20 3d 20 64 76 2e | 6d 61 78 20 3d 20 64 76 |in = dv.|max = dv|
|00000500| 2e 76 61 6c 75 65 20 3d | 20 30 3b 0d 09 64 76 2e |.value =| 0;..dv.|
|00000510| 61 63 74 69 6f 6e 70 72 | 6f 63 20 3d 20 61 63 74 |actionpr|oc = act|
|00000520| 69 6f 6e 3b 0d 09 64 76 | 2e 72 65 66 65 72 65 6e |ion;..dv|.referen|
|00000530| 63 65 20 3d 20 30 3b 0d | 09 69 66 20 28 50 74 72 |ce = 0;.|.if (Ptr|
|00000540| 54 6f 48 61 6e 64 28 26 | 64 76 2c 20 26 76 61 72 |ToHand(&|dv, &var|
|00000550| 73 68 61 6e 64 6c 65 2c | 20 73 69 7a 65 6f 66 28 |shandle,| sizeof(|
|00000560| 64 76 29 29 20 21 3d 20 | 6e 6f 45 72 72 29 20 72 |dv)) != |noErr) r|
|00000570| 65 74 75 72 6e 20 4e 55 | 4c 4c 3b 0d 09 0d 09 09 |eturn NU|LL;.....|
|00000580| 2f 2a 20 63 72 65 61 74 | 65 20 74 68 65 20 63 6f |/* creat|e the co|
|00000590| 6e 74 72 6f 6c 20 2a 2f | 0d 09 63 6f 6e 74 72 6f |ntrol */|..contro|
|000005a0| 6c 20 3d 20 4e 65 77 43 | 6f 6e 74 72 6f 6c 28 77 |l = NewC|ontrol(w|
|000005b0| 70 2c 20 62 6f 78 2c 20 | 22 5c 70 22 2c 20 74 72 |p, box, |"\p", tr|
|000005c0| 75 65 2c 20 30 2c 20 30 | 2c 20 6b 46 50 53 63 72 |ue, 0, 0|, kFPScr|
|000005d0| 6f 6c 6c 50 6f 73 69 74 | 69 6f 6e 73 2c 20 73 63 |ollPosit|ions, sc|
|000005e0| 72 6f 6c 6c 42 61 72 50 | 72 6f 63 2c 20 28 6c 6f |rollBarP|roc, (lo|
|000005f0| 6e 67 29 20 76 61 72 73 | 68 61 6e 64 6c 65 29 3b |ng) vars|handle);|
|00000600| 0d 09 0d 09 09 2f 2a 20 | 72 65 74 75 72 6e 20 74 |...../* |return t|
|00000610| 68 65 20 72 65 73 75 6c | 74 20 2a 2f 0d 09 69 66 |he resul|t */..if|
|00000620| 20 28 63 6f 6e 74 72 6f | 6c 20 3d 3d 20 4e 55 4c | (contro|l == NUL|
|00000630| 4c 29 20 7b 0d 09 09 44 | 69 73 70 6f 73 65 48 61 |L) {...D|isposeHa|
|00000640| 6e 64 6c 65 28 76 61 72 | 73 68 61 6e 64 6c 65 29 |ndle(var|shandle)|
|00000650| 3b 0d 09 09 72 65 74 75 | 72 6e 20 4e 55 4c 4c 3b |;...retu|rn NULL;|
|00000660| 0d 09 7d 20 65 6c 73 65 | 20 7b 0d 09 09 48 69 6c |..} else| {...Hil|
|00000670| 69 74 65 43 6f 6e 74 72 | 6f 6c 28 63 6f 6e 74 72 |iteContr|ol(contr|
|00000680| 6f 6c 2c 20 32 35 35 29 | 3b 0d 09 09 72 65 74 75 |ol, 255)|;...retu|
|00000690| 72 6e 20 63 6f 6e 74 72 | 6f 6c 3b 0d 09 7d 0d 7d |rn contr|ol;..}.}|
|000006a0| 0d 0d 76 6f 69 64 20 44 | 69 73 70 6f 73 65 46 50 |..void D|isposeFP|
|000006b0| 53 63 72 6f 6c 6c 42 61 | 72 28 43 6f 6e 74 72 6f |ScrollBa|r(Contro|
|000006c0| 6c 48 61 6e 64 6c 65 20 | 63 6f 6e 74 72 6f 6c 29 |lHandle |control)|
|000006d0| 20 7b 0d 09 46 50 53 63 | 72 6f 6c 6c 56 61 72 73 | {..FPSc|rollVars|
|000006e0| 20 2a 2a 64 76 3b 0d 09 | 64 76 20 3d 20 28 46 50 | **dv;..|dv = (FP|
|000006f0| 53 63 72 6f 6c 6c 56 61 | 72 73 20 2a 2a 29 20 47 |ScrollVa|rs **) G|
|00000700| 65 74 43 52 65 66 43 6f | 6e 28 63 6f 6e 74 72 6f |etCRefCo|n(contro|
|00000710| 6c 29 3b 0d 09 44 69 73 | 70 6f 73 65 48 61 6e 64 |l);..Dis|poseHand|
|00000720| 6c 65 28 28 48 61 6e 64 | 6c 65 29 20 64 76 29 3b |le((Hand|le) dv);|
|00000730| 0d 09 44 69 73 70 6f 73 | 65 43 6f 6e 74 72 6f 6c |..Dispos|eControl|
|00000740| 28 63 6f 6e 74 72 6f 6c | 29 3b 0d 7d 0d 0d 2f 2a |(control|);.}../*|
|00000750| 20 6d 61 70 73 20 61 20 | 66 6c 6f 61 74 20 76 61 | maps a |float va|
|00000760| 6c 75 65 20 66 72 6f 6d | 20 74 68 65 20 64 6f 6d |lue from| the dom|
|00000770| 61 69 6e 20 5b 64 6d 69 | 6e 2c 64 6d 61 78 5d 20 |ain [dmi|n,dmax] |
|00000780| 74 6f 20 74 68 65 20 72 | 61 6e 67 65 20 5b 72 6d |to the r|ange [rm|
|00000790| 69 6e 2c 72 6d 61 78 5d | 20 2a 2f 0d 73 74 61 74 |in,rmax]| */.stat|
|000007a0| 69 63 20 66 6c 6f 61 74 | 20 46 50 4d 61 70 56 61 |ic float| FPMapVa|
|000007b0| 6c 75 65 28 66 6c 6f 61 | 74 20 76 61 6c 75 65 2c |lue(floa|t value,|
|000007c0| 20 66 6c 6f 61 74 20 64 | 6d 69 6e 2c 20 66 6c 6f | float d|min, flo|
|000007d0| 61 74 20 64 6d 61 78 2c | 20 66 6c 6f 61 74 20 72 |at dmax,| float r|
|000007e0| 6d 69 6e 2c 20 66 6c 6f | 61 74 20 72 6d 61 78 29 |min, flo|at rmax)|
|000007f0| 20 7b 0d 09 66 6c 6f 61 | 74 20 73 6c 6f 70 65 2c | {..floa|t slope,|
|00000800| 20 62 3b 0d 09 73 6c 6f | 70 65 20 3d 20 28 72 6d | b;..slo|pe = (rm|
|00000810| 61 78 2d 72 6d 69 6e 29 | 20 2f 20 28 64 6d 61 78 |ax-rmin)| / (dmax|
|00000820| 2d 64 6d 69 6e 29 3b 0d | 09 62 20 3d 20 72 6d 69 |-dmin);.|.b = rmi|
|00000830| 6e 20 2d 20 73 6c 6f 70 | 65 20 2a 20 64 6d 69 6e |n - slop|e * dmin|
|00000840| 3b 0d 09 72 65 74 75 72 | 6e 20 28 73 6c 6f 70 65 |;..retur|n (slope|
|00000850| 20 2a 20 76 61 6c 75 65 | 29 20 2b 20 62 3b 0d 7d | * value|) + b;.}|
|00000860| 0d 0d 66 6c 6f 61 74 20 | 47 65 74 46 50 43 74 6c |..float |GetFPCtl|
|00000870| 4d 69 6e 28 43 6f 6e 74 | 72 6f 6c 48 61 6e 64 6c |Min(Cont|rolHandl|
|00000880| 65 20 63 6f 6e 74 72 6f | 6c 29 20 7b 0d 09 46 50 |e contro|l) {..FP|
|00000890| 53 63 72 6f 6c 6c 56 61 | 72 73 20 2a 2a 64 76 3b |ScrollVa|rs **dv;|
|000008a0| 0d 09 64 76 20 3d 20 28 | 46 50 53 63 72 6f 6c 6c |..dv = (|FPScroll|
|000008b0| 56 61 72 73 20 2a 2a 29 | 20 47 65 74 43 52 65 66 |Vars **)| GetCRef|
|000008c0| 43 6f 6e 28 63 6f 6e 74 | 72 6f 6c 29 3b 0d 09 72 |Con(cont|rol);..r|
|000008d0| 65 74 75 72 6e 20 28 2a | 2a 64 76 29 2e 6d 69 6e |eturn (*|*dv).min|
|000008e0| 3b 0d 7d 0d 0d 66 6c 6f | 61 74 20 47 65 74 46 50 |;.}..flo|at GetFP|
|000008f0| 43 74 6c 4d 61 78 28 43 | 6f 6e 74 72 6f 6c 48 61 |CtlMax(C|ontrolHa|
|00000900| 6e 64 6c 65 20 63 6f 6e | 74 72 6f 6c 29 20 7b 0d |ndle con|trol) {.|
|00000910| 09 46 50 53 63 72 6f 6c | 6c 56 61 72 73 20 2a 2a |.FPScrol|lVars **|
|00000920| 64 76 3b 0d 09 64 76 20 | 3d 20 28 46 50 53 63 72 |dv;..dv |= (FPScr|
|00000930| 6f 6c 6c 56 61 72 73 20 | 2a 2a 29 20 47 65 74 43 |ollVars |**) GetC|
|00000940| 52 65 66 43 6f 6e 28 63 | 6f 6e 74 72 6f 6c 29 3b |RefCon(c|ontrol);|
|00000950| 0d 09 72 65 74 75 72 6e | 20 28 2a 2a 64 76 29 2e |..return| (**dv).|
|00000960| 6d 61 78 3b 0d 7d 0d 0d | 66 6c 6f 61 74 20 47 65 |max;.}..|float Ge|
|00000970| 74 46 50 43 74 6c 56 61 | 6c 75 65 28 43 6f 6e 74 |tFPCtlVa|lue(Cont|
|00000980| 72 6f 6c 48 61 6e 64 6c | 65 20 63 6f 6e 74 72 6f |rolHandl|e contro|
|00000990| 6c 29 20 7b 0d 09 46 50 | 53 63 72 6f 6c 6c 56 61 |l) {..FP|ScrollVa|
|000009a0| 72 73 20 2a 2a 64 76 3b | 0d 09 64 76 20 3d 20 28 |rs **dv;|..dv = (|
|000009b0| 46 50 53 63 72 6f 6c 6c | 56 61 72 73 20 2a 2a 29 |FPScroll|Vars **)|
|000009c0| 20 47 65 74 43 52 65 66 | 43 6f 6e 28 63 6f 6e 74 | GetCRef|Con(cont|
|000009d0| 72 6f 6c 29 3b 0d 09 72 | 65 74 75 72 6e 20 28 2a |rol);..r|eturn (*|
|000009e0| 2a 64 76 29 2e 76 61 6c | 75 65 3b 0d 7d 0d 0d 66 |*dv).val|ue;.}..f|
|000009f0| 6c 6f 61 74 20 47 65 74 | 46 50 54 68 75 6d 62 56 |loat Get|FPThumbV|
|00000a00| 61 6c 75 65 28 43 6f 6e | 74 72 6f 6c 48 61 6e 64 |alue(Con|trolHand|
|00000a10| 6c 65 20 63 6f 6e 74 72 | 6f 6c 29 20 7b 0d 09 46 |le contr|ol) {..F|
|00000a20| 50 53 63 72 6f 6c 6c 56 | 61 72 73 20 2a 2a 64 76 |PScrollV|ars **dv|
|00000a30| 3b 0d 09 64 76 20 3d 20 | 28 46 50 53 63 72 6f 6c |;..dv = |(FPScrol|
|00000a40| 6c 56 61 72 73 20 2a 2a | 29 20 47 65 74 43 52 65 |lVars **|) GetCRe|
|00000a50| 66 43 6f 6e 28 63 6f 6e | 74 72 6f 6c 29 3b 0d 09 |fCon(con|trol);..|
|00000a60| 72 65 74 75 72 6e 20 28 | 2a 2a 64 76 29 2e 70 72 |return (|**dv).pr|
|00000a70| 65 76 74 68 75 6d 62 3b | 0d 7d 0d 0d 6c 6f 6e 67 |evthumb;|.}..long|
|00000a80| 20 47 65 74 46 50 43 74 | 6c 52 65 66 65 72 65 6e | GetFPCt|lReferen|
|00000a90| 63 65 28 43 6f 6e 74 72 | 6f 6c 48 61 6e 64 6c 65 |ce(Contr|olHandle|
|00000aa0| 20 63 6f 6e 74 72 6f 6c | 29 20 7b 0d 09 46 50 53 | control|) {..FPS|
|00000ab0| 63 72 6f 6c 6c 56 61 72 | 73 20 2a 2a 64 76 3b 0d |crollVar|s **dv;.|
|00000ac0| 09 64 76 20 3d 20 28 46 | 50 53 63 72 6f 6c 6c 56 |.dv = (F|PScrollV|
|00000ad0| 61 72 73 20 2a 2a 29 20 | 47 65 74 43 52 65 66 43 |ars **) |GetCRefC|
|00000ae0| 6f 6e 28 63 6f 6e 74 72 | 6f 6c 29 3b 0d 09 72 65 |on(contr|ol);..re|
|00000af0| 74 75 72 6e 20 28 2a 2a | 64 76 29 2e 72 65 66 65 |turn (**|dv).refe|
|00000b00| 72 65 6e 63 65 3b 0d 7d | 0d 0d 76 6f 69 64 20 53 |rence;.}|..void S|
|00000b10| 65 74 46 50 43 74 6c 52 | 65 66 65 72 65 6e 63 65 |etFPCtlR|eference|
|00000b20| 28 43 6f 6e 74 72 6f 6c | 48 61 6e 64 6c 65 20 63 |(Control|Handle c|
|00000b30| 6f 6e 74 72 6f 6c 2c 20 | 6c 6f 6e 67 20 72 65 66 |ontrol, |long ref|
|00000b40| 29 20 7b 0d 09 46 50 53 | 63 72 6f 6c 6c 56 61 72 |) {..FPS|crollVar|
|00000b50| 73 20 2a 2a 64 76 3b 0d | 09 64 76 20 3d 20 28 46 |s **dv;.|.dv = (F|
|00000b60| 50 53 63 72 6f 6c 6c 56 | 61 72 73 20 2a 2a 29 20 |PScrollV|ars **) |
|00000b70| 47 65 74 43 52 65 66 43 | 6f 6e 28 63 6f 6e 74 72 |GetCRefC|on(contr|
|00000b80| 6f 6c 29 3b 0d 09 28 2a | 2a 64 76 29 2e 72 65 66 |ol);..(*|*dv).ref|
|00000b90| 65 72 65 6e 63 65 20 3d | 20 72 65 66 3b 0d 7d 0d |erence =| ref;.}.|
|00000ba0| 0d 76 6f 69 64 20 53 65 | 74 46 50 43 74 6c 4d 69 |.void Se|tFPCtlMi|
|00000bb0| 6e 4d 61 78 28 43 6f 6e | 74 72 6f 6c 48 61 6e 64 |nMax(Con|trolHand|
|00000bc0| 6c 65 20 63 6f 6e 74 72 | 6f 6c 2c 20 66 6c 6f 61 |le contr|ol, floa|
|00000bd0| 74 20 6d 69 6e 2c 20 66 | 6c 6f 61 74 20 6d 61 78 |t min, f|loat max|
|00000be0| 29 20 7b 0d 09 66 6c 6f | 61 74 20 6f 6c 64 76 61 |) {..flo|at oldva|
|00000bf0| 6c 75 65 2c 20 6e 65 78 | 74 76 61 6c 75 65 3b 0d |lue, nex|tvalue;.|
|00000c00| 09 73 68 6f 72 74 20 6e | 65 77 76 61 6c 75 65 3b |.short n|ewvalue;|
|00000c10| 0d 09 46 50 53 63 72 6f | 6c 6c 56 61 72 73 20 2a |..FPScro|llVars *|
|00000c20| 2a 64 76 3b 0d 09 64 76 | 20 3d 20 28 46 50 53 63 |*dv;..dv| = (FPSc|
|00000c30| 72 6f 6c 6c 56 61 72 73 | 20 2a 2a 29 20 47 65 74 |rollVars| **) Get|
|00000c40| 43 52 65 66 43 6f 6e 28 | 63 6f 6e 74 72 6f 6c 29 |CRefCon(|control)|
|00000c50| 3b 0d 09 0d 09 09 2f 2a | 20 65 6e 73 75 72 65 20 |;...../*| ensure |
|00000c60| 74 68 65 20 63 75 72 72 | 65 6e 74 20 76 61 6c 75 |the curr|ent valu|
|00000c70| 65 20 69 73 20 69 6e 20 | 74 68 65 20 6e 65 77 20 |e is in |the new |
|00000c80| 72 61 6e 67 65 20 2a 2f | 0d 09 6f 6c 64 76 61 6c |range */|..oldval|
|00000c90| 75 65 20 3d 20 28 2a 2a | 64 76 29 2e 76 61 6c 75 |ue = (**|dv).valu|
|00000ca0| 65 3b 0d 09 69 66 20 28 | 6f 6c 64 76 61 6c 75 65 |e;..if (|oldvalue|
|00000cb0| 20 3c 20 6d 69 6e 29 20 | 0d 09 09 6e 65 78 74 76 | < min) |...nextv|
|00000cc0| 61 6c 75 65 20 3d 20 6d | 69 6e 3b 0d 09 65 6c 73 |alue = m|in;..els|
|00000cd0| 65 20 69 66 20 28 6f 6c | 64 76 61 6c 75 65 20 3e |e if (ol|dvalue >|
|00000ce0| 20 6d 61 78 29 0d 09 09 | 6e 65 78 74 76 61 6c 75 | max)...|nextvalu|
|00000cf0| 65 20 3d 20 6d 61 78 3b | 0d 09 65 6c 73 65 20 6e |e = max;|..else n|
|00000d00| 65 78 74 76 61 6c 75 65 | 20 3d 20 6f 6c 64 76 61 |extvalue| = oldva|
|00000d10| 6c 75 65 3b 0d 09 28 2a | 2a 64 76 29 2e 76 61 6c |lue;..(*|*dv).val|
|00000d20| 75 65 20 3d 20 6e 65 78 | 74 76 61 6c 75 65 3b 0d |ue = nex|tvalue;.|
|00000d30| 09 0d 09 09 2f 2a 20 73 | 65 74 20 74 68 65 20 6d |..../* s|et the m|
|00000d40| 69 6e 69 6d 75 6d 20 61 | 6e 64 20 6d 61 78 69 6d |inimum a|nd maxim|
|00000d50| 75 6d 20 2a 2f 0d 09 28 | 2a 2a 64 76 29 2e 6d 69 |um */..(|**dv).mi|
|00000d60| 6e 20 3d 20 6d 69 6e 3b | 0d 09 28 2a 2a 64 76 29 |n = min;|..(**dv)|
|00000d70| 2e 6d 61 78 20 3d 20 6d | 61 78 3b 0d 09 0d 09 09 |.max = m|ax;.....|
|00000d80| 2f 2a 20 64 69 73 70 6c | 61 79 20 74 68 65 20 6e |/* displ|ay the n|
|00000d90| 65 77 20 73 65 74 74 69 | 6e 67 73 20 2a 2f 0d 09 |ew setti|ngs */..|
|00000da0| 6e 65 77 76 61 6c 75 65 | 20 3d 20 72 6f 75 6e 64 |newvalue| = round|
|00000db0| 74 6f 6c 28 46 50 4d 61 | 70 56 61 6c 75 65 28 6e |tol(FPMa|pValue(n|
|00000dc0| 65 78 74 76 61 6c 75 65 | 2c 20 6d 69 6e 2c 20 6d |extvalue|, min, m|
|00000dd0| 61 78 2c 20 30 2c 20 6b | 46 50 53 63 72 6f 6c 6c |ax, 0, k|FPScroll|
|00000de0| 50 6f 73 69 74 69 6f 6e | 73 29 29 3b 0d 09 53 65 |Position|s));..Se|
|00000df0| 74 43 74 6c 56 61 6c 75 | 65 28 63 6f 6e 74 72 6f |tCtlValu|e(contro|
|00000e00| 6c 2c 20 6e 65 77 76 61 | 6c 75 65 29 3b 0d 09 48 |l, newva|lue);..H|
|00000e10| 69 6c 69 74 65 43 6f 6e | 74 72 6f 6c 28 63 6f 6e |iliteCon|trol(con|
|00000e20| 74 72 6f 6c 2c 20 28 28 | 6d 69 6e 20 3d 3d 20 6d |trol, ((|min == m|
|00000e30| 61 78 29 20 3f 20 32 35 | 35 3a 20 30 29 29 3b 0d |ax) ? 25|5: 0));.|
|00000e40| 7d 0d 0d 76 6f 69 64 20 | 53 65 74 46 50 43 74 6c |}..void |SetFPCtl|
|00000e50| 56 61 6c 75 65 28 43 6f | 6e 74 72 6f 6c 48 61 6e |Value(Co|ntrolHan|
|00000e60| 64 6c 65 20 63 6f 6e 74 | 72 6f 6c 2c 20 66 6c 6f |dle cont|rol, flo|
|00000e70| 61 74 20 76 61 6c 75 65 | 29 20 7b 0d 09 46 50 53 |at value|) {..FPS|
|00000e80| 63 72 6f 6c 6c 56 61 72 | 73 20 2a 2a 64 76 3b 0d |crollVar|s **dv;.|
|00000e90| 09 66 6c 6f 61 74 20 6e | 65 78 74 76 61 6c 75 65 |.float n|extvalue|
|00000ea0| 3b 0d 09 73 68 6f 72 74 | 20 6e 65 77 76 61 6c 75 |;..short| newvalu|
|00000eb0| 65 3b 0d 09 64 76 20 3d | 20 28 46 50 53 63 72 6f |e;..dv =| (FPScro|
|00000ec0| 6c 6c 56 61 72 73 20 2a | 2a 29 20 47 65 74 43 52 |llVars *|*) GetCR|
|00000ed0| 65 66 43 6f 6e 28 63 6f | 6e 74 72 6f 6c 29 3b 0d |efCon(co|ntrol);.|
|00000ee0| 09 0d 09 09 2f 2a 20 65 | 6e 73 75 72 65 20 74 68 |..../* e|nsure th|
|00000ef0| 65 20 76 61 6c 75 65 20 | 69 73 20 69 6e 20 74 68 |e value |is in th|
|00000f00| 65 20 63 6f 6e 74 72 6f | 6c 27 73 20 72 61 6e 67 |e contro|l's rang|
|00000f10| 65 20 2a 2f 0d 09 69 66 | 20 28 76 61 6c 75 65 20 |e */..if| (value |
|00000f20| 3c 20 28 2a 2a 64 76 29 | 2e 6d 69 6e 29 0d 09 09 |< (**dv)|.min)...|
|00000f30| 6e 65 78 74 76 61 6c 75 | 65 20 3d 20 28 2a 2a 64 |nextvalu|e = (**d|
|00000f40| 76 29 2e 6d 69 6e 3b 0d | 09 65 6c 73 65 20 69 66 |v).min;.|.else if|
|00000f50| 20 28 76 61 6c 75 65 20 | 3e 20 28 2a 2a 64 76 29 | (value |> (**dv)|
|00000f60| 2e 6d 61 78 29 0d 09 09 | 6e 65 78 74 76 61 6c 75 |.max)...|nextvalu|
|00000f70| 65 20 3d 20 28 2a 2a 64 | 76 29 2e 6d 61 78 3b 0d |e = (**d|v).max;.|
|00000f80| 09 65 6c 73 65 20 6e 65 | 78 74 76 61 6c 75 65 20 |.else ne|xtvalue |
|00000f90| 3d 20 76 61 6c 75 65 3b | 0d 09 28 2a 2a 64 76 29 |= value;|..(**dv)|
|00000fa0| 2e 76 61 6c 75 65 20 3d | 20 6e 65 78 74 76 61 6c |.value =| nextval|
|00000fb0| 75 65 3b 0d 09 0d 09 09 | 2f 2a 20 64 69 73 70 6c |ue;.....|/* displ|
|00000fc0| 61 79 20 74 68 65 20 6e | 65 77 20 73 65 74 74 69 |ay the n|ew setti|
|00000fd0| 6e 67 73 20 2a 2f 0d 09 | 6e 65 77 76 61 6c 75 65 |ngs */..|newvalue|
|00000fe0| 20 3d 20 72 6f 75 6e 64 | 74 6f 6c 28 46 50 4d 61 | = round|tol(FPMa|
|00000ff0| 70 56 61 6c 75 65 28 6e | 65 78 74 76 61 6c 75 65 |pValue(n|extvalue|
|00001000| 2c 20 28 2a 2a 64 76 29 | 2e 6d 69 6e 2c 20 28 2a |, (**dv)|.min, (*|
|00001010| 2a 64 76 29 2e 6d 61 78 | 2c 20 30 2c 20 6b 46 50 |*dv).max|, 0, kFP|
|00001020| 53 63 72 6f 6c 6c 50 6f | 73 69 74 69 6f 6e 73 29 |ScrollPo|sitions)|
|00001030| 29 3b 0d 09 53 65 74 43 | 74 6c 56 61 6c 75 65 28 |);..SetC|tlValue(|
|00001040| 63 6f 6e 74 72 6f 6c 2c | 20 6e 65 77 76 61 6c 75 |control,| newvalu|
|00001050| 65 29 3b 0d 7d 0d 0d 73 | 74 61 74 69 63 20 70 61 |e);.}..s|tatic pa|
|00001060| 73 63 61 6c 20 76 6f 69 | 64 20 46 50 53 63 72 6f |scal voi|d FPScro|
|00001070| 6c 6c 41 63 74 69 6f 6e | 50 72 6f 63 65 64 75 72 |llAction|Procedur|
|00001080| 65 28 43 6f 6e 74 72 6f | 6c 52 65 66 20 74 68 65 |e(Contro|lRef the|
|00001090| 43 6f 6e 74 72 6f 6c 2c | 20 43 6f 6e 74 72 6f 6c |Control,| Control|
|000010a0| 50 61 72 74 43 6f 64 65 | 20 70 61 72 74 43 6f 64 |PartCode| partCod|
|000010b0| 65 29 20 7b 0d 09 46 50 | 53 63 72 6f 6c 6c 56 61 |e) {..FP|ScrollVa|
|000010c0| 72 73 20 2a 2a 64 76 3b | 0d 09 64 76 20 3d 20 28 |rs **dv;|..dv = (|
|000010d0| 46 50 53 63 72 6f 6c 6c | 56 61 72 73 20 2a 2a 29 |FPScroll|Vars **)|
|000010e0| 20 47 65 74 43 52 65 66 | 43 6f 6e 28 74 68 65 43 | GetCRef|Con(theC|
|000010f0| 6f 6e 74 72 6f 6c 29 3b | 0d 09 28 28 2a 2a 64 76 |ontrol);|..((**dv|
|00001100| 29 2e 61 63 74 69 6f 6e | 70 72 6f 63 29 28 74 68 |).action|proc)(th|
|00001110| 65 43 6f 6e 74 72 6f 6c | 2c 20 70 61 72 74 43 6f |eControl|, partCo|
|00001120| 64 65 2c 20 28 2a 2a 64 | 76 29 2e 72 65 66 65 72 |de, (**d|v).refer|
|00001130| 65 6e 63 65 29 3b 0d 7d | 0d 0d 76 6f 69 64 20 54 |ence);.}|..void T|
|00001140| 72 61 63 6b 46 50 43 6f | 6e 74 72 6f 6c 28 57 69 |rackFPCo|ntrol(Wi|
|00001150| 6e 64 6f 77 50 74 72 20 | 74 68 65 57 69 6e 64 6f |ndowPtr |theWindo|
|00001160| 77 2c 20 43 6f 6e 74 72 | 6f 6c 48 61 6e 64 6c 65 |w, Contr|olHandle|
|00001170| 20 63 6f 6e 74 72 6f 6c | 2c 20 50 6f 69 6e 74 20 | control|, Point |
|00001180| 77 68 65 72 65 29 20 7b | 0d 09 73 68 6f 72 74 20 |where) {|..short |
|00001190| 70 61 72 74 63 6f 64 65 | 3b 0d 09 43 6f 6e 74 72 |partcode|;..Contr|
|000011a0| 6f 6c 48 61 6e 64 6c 65 | 20 74 68 65 43 6f 6e 74 |olHandle| theCont|
|000011b0| 72 6f 6c 3b 0d 09 70 61 | 72 74 63 6f 64 65 20 3d |rol;..pa|rtcode =|
|000011c0| 20 46 69 6e 64 43 6f 6e | 74 72 6f 6c 28 77 68 65 | FindCon|trol(whe|
|000011d0| 72 65 2c 20 74 68 65 57 | 69 6e 64 6f 77 2c 20 26 |re, theW|indow, &|
|000011e0| 74 68 65 43 6f 6e 74 72 | 6f 6c 29 3b 0d 09 69 66 |theContr|ol);..if|
|000011f0| 20 28 70 61 72 74 63 6f | 64 65 20 21 3d 20 30 20 | (partco|de != 0 |
|00001200| 26 26 20 74 68 65 43 6f | 6e 74 72 6f 6c 20 3d 3d |&& theCo|ntrol ==|
|00001210| 20 63 6f 6e 74 72 6f 6c | 29 20 7b 0d 09 09 46 50 | control|) {...FP|
|00001220| 53 63 72 6f 6c 6c 56 61 | 72 73 20 2a 2a 64 76 3b |ScrollVa|rs **dv;|
|00001230| 0d 09 09 73 68 6f 72 74 | 20 6e 65 77 76 61 6c 75 |...short| newvalu|
|00001240| 65 3b 0d 09 09 66 6c 6f | 61 74 20 6e 65 78 74 76 |e;...flo|at nextv|
|00001250| 61 6c 75 65 3b 0d 09 09 | 64 76 20 3d 20 28 46 50 |alue;...|dv = (FP|
|00001260| 53 63 72 6f 6c 6c 56 61 | 72 73 20 2a 2a 29 20 47 |ScrollVa|rs **) G|
|00001270| 65 74 43 52 65 66 43 6f | 6e 28 63 6f 6e 74 72 6f |etCRefCo|n(contro|
|00001280| 6c 29 3b 0d 09 09 69 66 | 20 28 70 61 72 74 63 6f |l);...if| (partco|
|00001290| 64 65 20 3d 3d 20 69 6e | 54 68 75 6d 62 29 20 7b |de == in|Thumb) {|
|000012a0| 0d 09 09 09 69 66 20 28 | 54 72 61 63 6b 43 6f 6e |....if (|TrackCon|
|000012b0| 74 72 6f 6c 28 63 6f 6e | 74 72 6f 6c 2c 20 77 68 |trol(con|trol, wh|
|000012c0| 65 72 65 2c 20 4e 55 4c | 4c 29 20 3d 3d 20 69 6e |ere, NUL|L) == in|
|000012d0| 54 68 75 6d 62 29 20 7b | 0d 09 09 09 09 6e 65 77 |Thumb) {|.....new|
|000012e0| 76 61 6c 75 65 20 3d 20 | 47 65 74 43 74 6c 56 61 |value = |GetCtlVa|
|000012f0| 6c 75 65 28 63 6f 6e 74 | 72 6f 6c 29 3b 0d 09 09 |lue(cont|rol);...|
|00001300| 09 09 6e 65 78 74 76 61 | 6c 75 65 20 3d 20 46 50 |..nextva|lue = FP|
|00001310| 4d 61 70 56 61 6c 75 65 | 28 28 66 6c 6f 61 74 29 |MapValue|((float)|
|00001320| 20 6e 65 77 76 61 6c 75 | 65 2c 20 30 2c 20 6b 46 | newvalu|e, 0, kF|
|00001330| 50 53 63 72 6f 6c 6c 50 | 6f 73 69 74 69 6f 6e 73 |PScrollP|ositions|
|00001340| 2c 20 28 2a 2a 64 76 29 | 2e 6d 69 6e 2c 20 28 2a |, (**dv)|.min, (*|
|00001350| 2a 64 76 29 2e 6d 61 78 | 29 3b 0d 09 09 09 09 69 |*dv).max|);.....i|
|00001360| 66 20 28 28 2a 2a 64 76 | 29 2e 76 61 6c 75 65 20 |f ((**dv|).value |
|00001370| 21 3d 20 6e 65 78 74 76 | 61 6c 75 65 29 20 7b 0d |!= nextv|alue) {.|
|00001380| 09 09 09 09 09 28 2a 2a | 64 76 29 2e 70 72 65 76 |.....(**|dv).prev|
|00001390| 74 68 75 6d 62 20 3d 20 | 28 2a 2a 64 76 29 2e 76 |thumb = |(**dv).v|
|000013a0| 61 6c 75 65 3b 0d 09 09 | 09 09 09 28 2a 2a 64 76 |alue;...|...(**dv|
|000013b0| 29 2e 76 61 6c 75 65 20 | 3d 20 6e 65 78 74 76 61 |).value |= nextva|
|000013c0| 6c 75 65 3b 0d 09 09 09 | 09 09 28 28 2a 2a 64 76 |lue;....|..((**dv|
|000013d0| 29 2e 61 63 74 69 6f 6e | 70 72 6f 63 29 28 63 6f |).action|proc)(co|
|000013e0| 6e 74 72 6f 6c 2c 20 69 | 6e 54 68 75 6d 62 2c 20 |ntrol, i|nThumb, |
|000013f0| 28 2a 2a 64 76 29 2e 72 | 65 66 65 72 65 6e 63 65 |(**dv).r|eference|
|00001400| 29 3b 0d 09 09 09 09 7d | 0d 09 09 09 7d 0d 09 09 |);.....}|....}...|
|00001410| 7d 20 65 6c 73 65 20 7b | 0d 09 09 09 43 6f 6e 74 |} else {|....Cont|
|00001420| 72 6f 6c 41 63 74 69 6f | 6e 55 50 50 20 6c 6f 63 |rolActio|nUPP loc|
|00001430| 61 6c 5f 61 63 74 69 6f | 6e 3b 0d 09 09 09 6c 6f |al_actio|n;....lo|
|00001440| 63 61 6c 5f 61 63 74 69 | 6f 6e 20 3d 20 4e 65 77 |cal_acti|on = New|
|00001450| 43 6f 6e 74 72 6f 6c 41 | 63 74 69 6f 6e 50 72 6f |ControlA|ctionPro|
|00001460| 63 28 46 50 53 63 72 6f | 6c 6c 41 63 74 69 6f 6e |c(FPScro|llAction|
|00001470| 50 72 6f 63 65 64 75 72 | 65 29 3b 0d 09 09 09 54 |Procedur|e);....T|
|00001480| 72 61 63 6b 43 6f 6e 74 | 72 6f 6c 28 63 6f 6e 74 |rackCont|rol(cont|
|00001490| 72 6f 6c 2c 20 77 68 65 | 72 65 2c 20 6c 6f 63 61 |rol, whe|re, loca|
|000014a0| 6c 5f 61 63 74 69 6f 6e | 29 3b 0d 09 09 09 44 69 |l_action|);....Di|
|000014b0| 73 70 6f 73 65 52 6f 75 | 74 69 6e 65 44 65 73 63 |sposeRou|tineDesc|
|000014c0| 72 69 70 74 6f 72 28 28 | 55 6e 69 76 65 72 73 61 |riptor((|Universa|
|000014d0| 6c 50 72 6f 63 50 74 72 | 29 20 6c 6f 63 61 6c 5f |lProcPtr|) local_|
|000014e0| 61 63 74 69 6f 6e 29 3b | 0d 09 09 7d 0d 09 7d 0d |action);|...}..}.|
|000014f0| 7d 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|00001500| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00001510| 6f 6c 20 74 6f 0d 72 65 | 66 6c 65 63 74 20 74 68 |ol to.re|flect th|
|00001520| 65 20 6e 65 77 20 72 61 | 6e 67 65 2e 20 49 66 20 |e new ra|nge. If |
|00001530| 0a 46 50 53 63 72 6f 6c | 6c 2e 63 2d 02 00 00 00 |.FPScrol|l.c-....|
|00001540| 54 45 58 54 4d 50 53 20 | 01 00 ff ff ff ff 00 00 |TEXTMPS |........|
|00001550| 00 00 54 45 58 54 4d 50 | 53 20 01 00 ff ff ff ff |..TEXTMP|S ......|
|00001560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001570| 1a c6 ae 7b 04 ae 00 00 | 14 72 00 00 01 ac 20 74 |...{....|.r.... t|
|00001580| 68 65 20 6e 65 77 20 6d | 69 6e 69 6d 75 6d 2e 0d |he new m|inimum..|
|00001590| 0d be 4b 59 20 47 65 74 | 43 74 6c 4d 69 6e 20 0d |..KY Get|CtlMin .|
|000015a0| be 46 43 20 43 6f 6e 74 | 72 6f 6c 73 2e 68 0d be |.FC Cont|rols.h..|
|000015b0| 54 20 46 75 6e 63 74 69 | 6f 6e 0d be 54 4e 20 41 |T Functi|on..TN A|
|000015c0| 39 36 31 0d be 44 20 70 | 61 73 63 61 6c 20 73 68 |961..D p|ascal sh|
|000015d0| 6f 72 74 20 47 65 74 43 | 74 6c 4d 69 6e 28 43 6f |ort GetC|tlMin(Co|
|000015e0| 6e 74 72 6f 6c 48 61 6e | 64 6c 65 20 74 68 65 43 |ntrolHan|dle theC|
|000015f0| 6f 6e 74 72 6f 6c 29 0d | 09 3d 20 30 78 41 39 36 |ontrol).|.= 0xA96|
|00001600| 00 00 00 48 00 09 47 65 | 6e 65 76 61 00 0d 09 43 |...H..Ge|neva...C|
|00001610| 03 df 85 b0 6f 6c 41 63 | 74 69 6f 6e 55 50 50 20 |....olAc|tionUPP |
|00001620| 61 63 74 69 6f 6e 00 03 | 00 08 00 43 00 1f 02 5b |action..|...C...[|
|00001630| 02 40 00 35 01 3b 02 4d | 03 5c b0 5f 53 51 00 00 |.@.5.;.M|.\._SQ..|
|00001640| 00 14 00 00 02 bf 00 00 | 00 00 01 00 00 00 00 1e |........|........|
|00001650| 00 43 00 1f 02 5b 02 40 | 00 35 01 3b 02 4d 03 5c |.C...[.@|.5.;.M.\|
|00001660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001670| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 03 d6 |.....n..|.n...>..|
|00001680| 71 38 26 90 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |q8&.....|.>..MPSR|
|00001690| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000016a0| 03 f0 ff ff 00 00 00 4c | 03 d7 cc 08 00 00 00 00 |.......L|........|
|000016b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+